{extend name='template/base'}{/extend}
{block name='title'}{/block}
{block name='style'}{/block}
{block name='script'}{/block}
{block name='content'}
    <header class="header">
        <div>
            我的
        </div>
    </header>

    <div class="pages">
        <div class="center-head">
            <div class="img">
                {if $info.headimg}
                <img src="{$info.headimg}" id="headamage"  alt="">
                {else /}
                <img src="__STATIC__/image/timo.jpg" id="headamage"  alt="">
                {/if}
                <p>{$info.nick}</p>
            </div>
            <!--<a><i class="iconfont icon-shezhi"></i></a>-->
        </div>
        <div class="list-form">
            <ul class="title-gray">
                <li></li>
            </ul>
        </div>
        <div class="list-form other has-b">
            <ul>
                <li>
                    <a href="{:url('user/Account/index')}" class="list-form-link">
                        <i class="iconfont icon-zhanghu color-primary"></i>
                        账户信息
                        <span class="pull-right  color-gray" >余额:{$info.money}元</span>
                    </a>
                </li>
                <li>
                    <a href="{:url('/order/Order/index')}" class="list-form-link">
                        <i class="iconfont icon-dingdan color-primary"></i>
                        我的订单
                    </a>
                </li>
                <li>
                    <a href="{:url('user/Index/collect')}" class="list-form-link">
                        <i class="iconfont icon-shoucang1 color-primary"></i>
                        店铺收藏
                    </a>
                </li>
                <li>
                    <a href="{:url('user/Account/set_pwd')}" class="list-form-link">
                        <i class="iconfont icon-yue2 color-primary"></i>
                        设置支付密码
                        {if condition="!empty($info.pay_password)"}
                        <span class="pull-right ellipsis text-right  color-gray" style="display: inline-block;width: 120px;">已设置</span>
                        {/if}
                    </a>
                </li>
                <li>
                    <a href="{:url('user/Address/index')}" class="list-form-link">
                        <i class="iconfont icon-address color-primary"></i>
                        收货地址
                        <span class="pull-right ellipsis text-right color-gray" style="display: inline-block;width: 120px;">{$address}</span>
                    </a>
                </li>
                {if condition="!empty($info.is_delivery)"}
                <li>
                    <a href="{:url('delivery/Order/index')}" class="list-form-link">
                        <i class="iconfont icon-meishi color-primary"></i>
                        配送员入口
                    </a>
                </li>
                {/if}
            </ul>
        </div>
    </div>
{/block}
{block name='script_extra'}
<script>
    var down_image_url="{:url('user/User/down_image')}";
    require(['user/index'])
</script>
{/block}